/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package listeners;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;

/**
 *
 * @author Francisco Gindre
 */
public class OpenKnowledgeBaseListener implements MouseListener {

    @Override
    public void mouseClicked(MouseEvent e) {
        JFileChooser fileChooser = new JFileChooser("./");
        fileChooser.setDialogTitle("Open a KnowledgeBase");
        fileChooser.addChoosableFileFilter(new FileNameExtensionFilter(null, "*.yap"));
       

    }

    @Override
    public void mousePressed(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseEntered(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseExited(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
